/*
 * AboutForm.java
 *
 * Created on Jan 10, 2012, 9:36:55 PM
 */
package kernel_gui.gui.generic.graphic;

import java.awt.AWTError;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Toolkit;

import kernel_gui.gui.generic.BackGroundPanel;


/**
 *
 * @author Yoyo
 */
public abstract class AboutForm extends kernel_gui.gui.generic.MillionaireFrame {

    /**
	 * 
	 */
	private static final long serialVersionUID = -8632239830559280420L;
	
	/** Creates new form AboutForm */
    public AboutForm() {
    	super(true);
        initComponents();
    }
                         
    private void initComponents() {

        SpinningDollarLabel = new javax.swing.JLabel();
        SpinningDollarLabel1 = new javax.swing.JLabel();
        SpinningDollarLabel2 = new javax.swing.JLabel();
        SpinningDollarLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        backButton = new javax.swing.JButton();


        /* My init code */
    	int frameWidth = 823;
    	int frameHeight = 380;
    	this.setBounds(new Rectangle(new Dimension(frameWidth, frameHeight)));
    	this.setIconImage(new javax.swing.ImageIcon("images/Green-Dollar-icon.png").getImage());
       	this.setTitle("About");
    	setResizable(false);
    	try{
	    	Toolkit tk = Toolkit.getDefaultToolkit();
	    	int framePosWidth = tk.getScreenSize().width / 2 - frameWidth / 2;
	    	int framePosHeight = tk.getScreenSize().height / 2 - frameHeight / 2;
	    	Point p = new Point(framePosWidth, framePosHeight);
	    	this.setLocation(p);
		}catch(AWTError e){
			/*Nothing to do*/
		}
    	BGPanel = new BackGroundPanel(frameWidth, frameHeight);
    	/* end */
    	
        SpinningDollarLabel.setIcon(new javax.swing.ImageIcon("images/dollar-spinning.gif")); // NOI18N

        SpinningDollarLabel1.setIcon(new javax.swing.ImageIcon("images/dollar-spinning.gif")); // NOI18N

        SpinningDollarLabel2.setIcon(new javax.swing.ImageIcon("images/dollar-spinning.gif")); // NOI18N

        SpinningDollarLabel3.setIcon(new javax.swing.ImageIcon("images/dollar-spinning.gif")); // NOI18N

        jLabel1.setBackground(new java.awt.Color(0, 102, 51));
        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel1.setIcon(new javax.swing.ImageIcon("images/daniel.png")); // NOI18N
        jLabel1.setText("<html>Daniel Dubnikuv<br>The knowledge<br>(DB man)</html>");
        jLabel1.setFocusable(false);
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
        jLabel1.setOpaque(true);

        jLabel2.setBackground(new java.awt.Color(0, 102, 51));
        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setIcon(new javax.swing.ImageIcon("images/alona.png")); // NOI18N
        jLabel2.setText("<html>Alona Kushnirsky<br>The brain<br>(Kernel girl)</html>");
        jLabel2.setOpaque(true);

        jLabel3.setBackground(new java.awt.Color(0, 102, 51));
        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel3.setIcon(new javax.swing.ImageIcon("images/idan.png")); // NOI18N
        jLabel3.setText("<html>Idan Slonimsky<br>The wise one<br>(Parser dude)</html>");
        jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        jLabel3.setOpaque(true);

        jLabel4.setBackground(new java.awt.Color(0, 102, 51));
        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLabel4.setIcon(new javax.swing.ImageIcon("images/yoyo.png")); // NOI18N
        jLabel4.setText("<html>Yehonatan Ginzberg<br>The clown<br>(GUI guy)</html>");
        jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        jLabel4.setOpaque(true);

        jLabel5.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
        jLabel5.setText("(Of course we helped each other... :) )");

        jLabel6.setFont(new java.awt.Font("Tahoma", 3, 18)); // NOI18N
        jLabel6.setText("DB Project: Who Want's To Be a Millionaire?   I do!");

        backButton.setText("Back");
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout BGPanelLayout = new javax.swing.GroupLayout(BGPanel);
        BGPanel.setLayout(BGPanelLayout);
        BGPanelLayout.setHorizontalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BGPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BGPanelLayout.createSequentialGroup()
                        .addComponent(SpinningDollarLabel3)
                        .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(BGPanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 125, Short.MAX_VALUE)
                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 356, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(122, 122, 122))
                            .addGroup(BGPanelLayout.createSequentialGroup()
                                .addGap(272, 272, 272)
                                .addComponent(backButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addComponent(SpinningDollarLabel2))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addComponent(SpinningDollarLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 69, Short.MAX_VALUE)
                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 466, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(68, 68, 68)
                        .addComponent(SpinningDollarLabel1))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel2, 0, 0, Short.MAX_VALUE)
                            .addComponent(jLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                        .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4))))
                .addContainerGap())
        );
        BGPanelLayout.setVerticalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BGPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(SpinningDollarLabel)
                    .addComponent(SpinningDollarLabel1)
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(jLabel6)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(5, 5, 5)
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(BGPanelLayout.createSequentialGroup()
                            .addGap(6, 6, 6)
                            .addComponent(SpinningDollarLabel2))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BGPanelLayout.createSequentialGroup()
                            .addComponent(backButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel5)
                            .addGap(10, 10, 10)))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(SpinningDollarLabel3)))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }                  

    protected abstract void BackButtonActionPerformed(java.awt.event.ActionEvent evt);                                       


    
    protected javax.swing.JLabel SpinningDollarLabel;
    protected javax.swing.JLabel SpinningDollarLabel1;
    protected javax.swing.JLabel SpinningDollarLabel2;
    protected javax.swing.JLabel SpinningDollarLabel3;
    protected javax.swing.JButton backButton;
    protected javax.swing.JLabel jLabel1;
    protected javax.swing.JLabel jLabel2;
    protected javax.swing.JLabel jLabel3;
    protected javax.swing.JLabel jLabel4;
    protected javax.swing.JLabel jLabel5;
    protected javax.swing.JLabel jLabel6;
    protected javax.swing.JPanel BGPanel;              
}
